package org.mtmi.ui.links;

/**
 * A link is a connection between to IConnectable.
 * A Link have a source and a target and a connection id for each. 
 *
 * @deprecated NOT SURE IT's MANDATORY...
 */
public class Link 
{
	private IConnectable source;
	private String       source_cid;
	private IConnectable target;
	private String       target_cid;
	
	public Link( IConnectable src, String src_cid, IConnectable tgt, String tgt_cid )
	{
		source = src;
		source_cid = src_cid;
		target = tgt;
		target_cid = tgt_cid;
	}
	
	public IConnectable getSource() { return source; }
	public String getSourceConnectionID() { return source_cid; }
	public IConnectable getTarget() { return target; }
	public String getTargetConnectionID() { return target_cid; }
	
	
	
}
